package collection;

import java.util.Arrays;
import java.util.List;

public class ArrayToList {
    public static void main(String[] args) {
        String[] str ={"我","真","帅","帅"};
        List<String> l = Arrays.asList(str);
        System.out.println(Arrays.toString(str));
        System.out.println(l);

        str[2] = "的";
        System.out.println(Arrays.toString(str));
        System.out.println(l);

        l.set(2,"是");
        System.out.println(Arrays.toString(str));
        System.out.println(l);

        l.add("666");

    }
}
